/* ===== Onglets ===== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.tabs button {
  padding: 10px 20px;
  background: #fff;
  border: 2px solid white;

  cursor: pointer;

  transition: background 0.3s, color 0.3s;
  color: #ddd;
  font-size: 20px;
  font-family: police3;
}

.tabs button.active {

  color: #895426;
}

/* ===== Galerie ===== */
#projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11%, 1fr));
  gap: -18px;
  padding: 20px;
}

.project {
  overflow: hidden;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  transform: scale(1);
 
  background: transparent;
}

.project.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* Images toutes de la même taille */
.project img {
  width: 100%;
  height: 250px;        /* hauteur fixe pour toutes les images */
  object-fit: cover;    
  display: block;
 
  margin-bottom: 10px;
}

.project p {
  padding: 5px 0;
  font-size: 16px;
  color:#895426;
}

.project-link {
  position: relative;
  display: inline-block;
}

.project-link img.icon-spiral {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* le clic passe sur le lien */
  width: 50px;
  height: 50px;
}

.project-link img:first-child {
  display: block;
  transition: opacity 0.3s ease;
}

.project-link:hover img:first-child {
  opacity: 0.3; 
}

.project-link:hover img.icon-spiral {
  opacity: 1;
}

img.symbol {
  width: 10px;
}

#category-description {
  position: fixed;   
  bottom: 80px;      
  left: 60%;       
 right: 2%;
  z-index: 1000;     
  text-align: justify;
}

#category-description p.desc-paragraph {
  margin: 0;         
  text-align: left;  
  color: #895426;
  line-height: 1.6;

}
p.desc-paragraph {
  color: #895426;
 
  width: 100%;
}

/* ========================= */
/*  INDEX — MOBILE FIX     */
/* ========================= */
@media screen and (max-width: 768px) {

  /* ===== ONGLET ===== */
  .tabs {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
  }

  .tabs button {
    flex: 0 0 auto;
    font-size: 14px;
    padding: 8px 14px;
    white-space: nowrap;
  }

  img.symbol {
    width: 14px;
  }

  /* ===== GALERIE ===== */
  #projects-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
  }

  .project {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .project-link {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .project img {
    width: 92%;
    max-width: 420px;
    height: auto;
    object-fit: cover;
    margin: 0 auto;
  }

  /* ===== TEXTE EXPLICATIF ===== */
  #category-description {
    position: static;
    width: 100%;
    padding: 0 20px 20px;
    text-align: left;
  }

  #category-description p.desc-paragraph {
    font-size: 14px;
    line-height: 1.5;
  }

  /* ===== HOVER DÉSACTIVÉ MOBILE ===== */
  .project-link:hover img:first-child {
    opacity: 1;
  }

  .project-link img.icon-spiral {
    display: none;
  }

}
